Improve gtk_widget_insert_action_group docs
authorMatthias Clasen <mclasen@redhat.com>
Tue, 17 Sep 2013 01:13:00 +0000 (21:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 17 Sep 2013 01:13:00 +0000 (21:13 -0400)
Mention that group can be NULL. Related to

https://bugzilla.gnome.org/show_bug.cgi?id=708150

gtk/gtkwidget.c

index 6ee84095eaf6bb810ae7a41a1782678828b6deb0..532a8280f27714376418418a2249c75c9889c9bb 100644 (file)
@@ -15520,13 +15520,16 @@ _gtk_widget_get_action_muxer (GtkWidget *widget)
  * gtk_widget_insert_action_group:
  * @widget: a #GtkWidget
  * @name: the prefix for actions in @group
- * @group: a #GActionGroup
+ * @group: (allow-none): a #GActionGroup, or %NULL
  *
  * Inserts @group into @widget. Children of @widget that implement
  * #GtkActionable can then be associated with actions in @group by
  * setting their 'action-name' to
  * @prefix.<replaceable>action-name</replaceable>.
  *
+ * If @group is %NULL, a previously inserted group for @name is removed
+ * from @widget.
+ *
  * Since: 3.6
  */
 void